<template>
	<view class="yt-opcation-item" @click="to">
		<view class="yt-opcation-item_img">
			<image style="width: 106.8rpx;height: 106.8rpx;margin: 0 auto;display: block;" :src="icon"></image>
		</view>
		<view class="yt-opcation-item_text">{{text}}</view>
	</view>
</template>

<script>
	export default{
		props:['icon','text'],
		methods:{
			to(){
				var Vue = this
				this.$emit('click',Vue.text)
			}
		}
	}
</script>

<style>
	.yt-opcation-item{
		display: inline-block;
		margin-top: 40rpx;
	}
	.yt-opcation-item_img{
		display: block;
		margin-bottom: 10.68rpx;
	}
</style>
